public class Str {
    private String s;
    public String getS() {
        return s;
    }
    public void setS(String s) {
        this.s = s;
    }
    public String revrese() {
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = s.length() - 1; i >= 0 ; i--) {
            stringBuffer.append(s.charAt(i));
        }
        return stringBuffer.toString();
    }
}
